<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>window对象</title>
</head>
<body>
<button id="btn" onclick="btnClicked()" >按钮</button>
<script>
    // document.write("高度："+window.innerHeight+",宽度："+window.innerWidth);//屏幕的宽度和高度 去掉滚动条和上面的导航栏标题工具栏
    function btnClicked() {
        // window.open("62.jsDOM事件.html","windowname","width=200,height=200,top=100,left=100,toolbar=no,menuba=no");
        window.close();//关闭窗口
    }

</script>
</body>
</html>